layui.define(['jquery','form','laydate','upload','layer','element','functions','uploads'],function(exports){
	var $ = layui.$
	,upload = layui.upload
	,laydate = layui.laydate
	,element = layui.element
	,functions = layui.functions
	,uploads = layui.uploads
	,obj = {
    	init: function(option){
			
			element.render();
			
			functions.uploadCloseButton();
			
			laydate.render({
				elem: '#created',
				type : 'datetime'
			});
						
			if($('#category_smallpic').length>0){
				uploads.uploadSingleInit('category_smallpic');
			};
			if($('#category_bigpic').length>0){
				uploads.uploadSingleInit('category_bigpic');
			};
			if($('#category_multipic').length>0){
				uploads.uploadMutliInit('category_multipic');
			};
			

		},
		
		
		
		
		
		
	};
	exports('categoryAdd', obj);
});    


//类别添加